package behavioral.observer;

/**
 * @ClassName: Dad
 * @Description: 模拟观察者2：Dad
 * @Author: liu-hao
 * @Date: 2023-04-09 10:40
 * @Version: 1.0
 **/
public class Dog implements Observer {
    public void wang() {
        System.out.println("dog wang...");
    }

    @Override
    public void actionOnWakeUp(WakeUpEvent event) {
        wang();
    }
}
